﻿========================================================================
  AI Roundtable - AI 円卓会議  Version 0.4.0
========================================================================

  ソフト名     : AI Roundtable - AI 円卓会議
  バージョン   : 0.4.0
  作 者        : highdefinitionaudiodriver
  動作環境     : Windows 10/11
  ライセンス   : MIT License（フリーソフト／オープンソース）
  種 別        : フリーソフト
  作成日       : 2026-06-09

------------------------------------------------------------------------
■ ソフトの説明 / 使用方法（README より）
------------------------------------------------------------------------

AI Roundtable

AI Roundtable is a local web app for taking an answer from one AI and asking other AI roles to review, challenge, expand, and summarize it.

AI Roundtable is a local MVP where the selected AI provider/model role-plays multiple perspectives over another AI's answer.
It is not independent verification by multiple separate AI companies, and it should not be used for medical, legal, financial, self-harm, or other life-impacting decisions.

It is designed for moments like:

> This AI told me something. Can other AIs discuss whether it is actually reasonable?

---

🎯 これは何？（30秒で）

- 誰のため：AI の回答を複数視点で検証したい個人ユーザー／生成 AI のロールプレイ評価に関心がある開発者
- 何が解決される：「AI が言ったことは本当に妥当か？」を、同じ AI モデルに複数の役割を演じさせて疑似ディベートさせ、自己整合性チェックの素材を作る。簡易なセーフティゲートと CSRF / Same-Origin 制限あり
- なぜ既存ツールではダメか：ChatGPT / Claude 単体ではセルフレビューになりがち。本ツールは コピペ用プロンプト＋ローカル自動ループ を提供
- 使う条件：ブラウザ（PWA 対応）／オプションで Claude/OpenAI API キー

> ⚠️ 本ツールは独立した複数の AI 企業による検証ではありません。医療・法律・金融・自傷など人生に関わる判断には絶対に使用しないでください。

💰 想定ユースケース・価格帯

| 用途 | 形態 |
|---|---|
| 個人利用（AI 回答の妥当性チェック） | 無料（MIT） |
| 教育・研究目的の利用 | 無料（MIT） |
| 直接の商用課金は想定しない（社会的責任の観点から） | — |

---

Features

- One-click「サンプルで試す」: 質問＋回答を即充填し、実行/共有コピーですぐ結果を体験。空フォームの初見ハードルを解消。
- Paste or import an AI answer in any language.
- Copy ready-made prompts for ChatGPT, Claude, Gemini, Perplexity, Grok, or Copilot.
- In-app execution across 8 providers: OpenAI / Anthropic / Gemini / xAI Grok / Groq / Mistral / DeepSeek / Perplexity. 各プロバイダに「キー設定済み/未設定」を表示し、初見でも API キーの要否が一目で分かる。
- Run a four-role roundtable locally when API keys are configured.
- Start an auto debate that continues until the user presses Stop.
- Apply simple safety gating for blocked and high-risk topics.
- Protect local API endpoints with same-origin and CSRF checks.
- Install on a phone as a PWA.
- Receive shared text or URLs from supported mobile share menus.
- Use a bookmarklet to send selected text from another AI page into this app.

Screenshots

Preview images are included under docs/screenshots/.


For public launch, replace or supplement these with real screenshots or a GIF:

- docs/screenshots/desktop.png
- docs/screenshots/mobile.png

Quick Start


python server.py


Open:


http://127.0.0.1:8787


On Windows, you can also run:


run.bat


Optional API Keys

> 💡 アプリ内で AI を実行するには、その提供元の API キーが必要です。 キーが無くても、
> 「ワンクリック共有」で各 AI を開いたり、プロンプトをコピーして使う分には無料です。
> 画面上では、各プロバイダに「（キー設定済み）／（キー未設定）」が表示され、初見でも要否が分かります。

The app works without API keys as a one-click prompt router. To run AI responses inside the app, set one or more provider keys. Supported providers (in-app execution):

| Provider | Env var | Notes |
|---|---|---|
| OpenAI (ChatGPT) | OPENAI_API_KEY | OpenAI Chat Completions |
| Anthropic (Claude) | ANTHROPIC_API_KEY | Messages API |
| Google Gemini | GEMINI_API_KEY | generateContent |
| xAI Grok | XAI_API_KEY | OpenAI-compatible |
| Groq | GROQ_API_KEY | OpenAI-compatible |
| Mistral | MISTRAL_API_KEY | OpenAI-compatible |
| DeepSeek | DEEPSEEK_API_KEY | OpenAI-compatible |
| Perplexity | PERPLEXITY_API_KEY | OpenAI-compatible |

Set one or more before starting the server (you only need the providers you want to use):


$env:OPENAI_API_KEY="..."
$env:ANTHROPIC_API_KEY="..."
$env:GEMINI_API_KEY="..."
$env:XAI_API_KEY="..."        # Grok
$env:GROQ_API_KEY="..."       # Groq
$env:MISTRAL_API_KEY="..."    # Mistral
$env:DEEPSEEK_API_KEY="..."   # DeepSeek
$env:PERPLEXITY_API_KEY="..." # Perplexity
python server.py


See .env.example for per-provider model overrides, output-token limits, and port settings.

Auto Debate

Click 自動議論を開始 to keep the discussion going. The browser requests one AI message at a time and cycles through:


reviewer -> skeptic -> expander -> moderator -> synthesizer


Press 停止 to stop before the next message is requested.

Important: auto debate has a hard limit of 10 turns or 10 minutes. Watch your costs, provider rate limits, and privacy obligations.

Transparency

In-app execution uses the selected provider/model to role-play several perspectives. It is not independent verification by multiple separate AI systems. Use the external prompt/share workflow if you want to compare different providers manually.

Phone Use

Open the app on a phone and add it to the home screen.

- Android Chrome: use the in-app install prompt or browser menu.
- iPhone Safari: tap Share, then Add to Home Screen.

The PWA manifest includes a share target. On supported browsers, shared text or URLs can open AI Roundtable with the content prefilled.

One-Click Import

Open the app and use the bookmarklet shown in the side panel. Add it to your bookmarks bar. On another AI page, select the answer text and click the bookmarklet. The selected answer opens in AI Roundtable.

Note: the current bookmarklet sends selected text through the URL query string, so sensitive text may remain in browser history or logs. Do not use it for confidential content.

Tests

Server-side pure logic (safety gating, transcript handling, prompt building, input validation) is covered by unit tests that require no network access:


python -m unittest discover -s tests


Design Document

The Excel design document is included:


AI_Roundtable_設計書.xlsx


It can be regenerated with:


python tools\create_design_doc.py


Safety Notes

- Do not paste secrets, credentials, private documents, or personal data unless you are comfortable sending them to the configured AI provider.
- Medical, legal, financial, and safety-critical topics should be verified by qualified professionals.
- The app blocks obvious requests involving self-harm facilitation, illegal activity, weapons, fraud, or harm to others.
- Sensitive data patterns, such as passwords, API keys, secret keys, and confidential/personal data, are blocked by default.
- High-risk topics show a confirmation dialog with category-specific guidance and the destination provider before running. The app should be used for critique and issue spotting, not final decisions.
- Blocked-topic checks are enforced on both the client and the local server.
- API keys are read by the local Python server from environment variables and are not exposed to browser JavaScript.
- Local API calls require same-origin requests and a CSRF token.
- The server is intended for trusted local machines only. It binds to 127.0.0.1; other local processes on the same machine can still reach it.
- Provider calls use explicit output-token limits. Gemini calls also include explicit safety settings.
- Provider terms and privacy policies still apply.

More notes are in docs/SAFETY_NOTES.md.

Publication

Before posting publicly, review:

- docs/PUBLICATION_CHECKLIST.md
- docs/X_POST_DRAFTS.md
- docs/SCREENSHOT_GUIDE.md

License

MIT

---

🤝 商用利用・カスタマイズ依頼

- 個人・社内利用は無料（MIT ライセンス）
- 法人・自治体・SI 向け導入支援、カスタマイズ、診断レポート受託は応相談
- 連絡先：highdefinitionaudiodriver@gmail.com

<!-- CODEX-CURRENT-STATUS:START -->
現状サマリ (2026-05-25)

- 対象: AI Roundtable
- 作業ブランチ: main
- README更新時点の参照コミット: a08e16d docs: 売れるための README 改善 (C1/C3/C5)
- docs ディレクトリ配下に設計・運用・補足資料を配置。
- 主要な確認コマンド: README 記載のセットアップ・検証コマンド
- 次に進めるなら、README 内の利用手順と既存 docs / tests を起点に、未整備の検証手順・引き継ぎメモ・CI 化を補強する。
<!-- CODEX-CURRENT-STATUS:END -->

------------------------------------------------------------------------
■ 動作環境
------------------------------------------------------------------------
  Windows 10/11
  ※ オンライン専用ソフトではありません（ローカル環境で動作します）。

------------------------------------------------------------------------
■ インストール / アンインストール
------------------------------------------------------------------------
  ・本アーカイブを任意のフォルダに展開してください。
  ・詳細な起動手順は上記「ソフトの説明」および同梱の README を参照してください。
  ・アンインストールは展開したフォルダを削除するだけです（レジストリ不使用）。

------------------------------------------------------------------------
■ 転載・再配布について
------------------------------------------------------------------------
  本ソフトは MIT License のオープンソースです。同梱の LICENSE 条文に
  従う限り、自由に利用・改変・再配布できます。
  なお Vector 以外の配布サイトへの無断転載はご遠慮ください。

------------------------------------------------------------------------
■ 免責事項
------------------------------------------------------------------------
  本ソフトの使用によって生じたいかなる損害についても、作者は一切の
  責任を負いません。利用者ご自身の責任においてご使用ください。

------------------------------------------------------------------------
■ 著作権
------------------------------------------------------------------------
  Copyright (c) 2026 highdefinitionaudiodriver
  本ソフトは MIT License の下で公開されています。

------------------------------------------------------------------------
■ 連絡先 / サポート
------------------------------------------------------------------------
  作 者        : highdefinitionaudiodriver
  E-mail       : highdefinitionaudiodriver@gmail.com
  GitHub       : https://github.com/highdefinitionaudiodriver/ai-roundtable.git
  不具合報告・ご要望は上記 E-mail もしくはリポジトリの Issues へ
  お願いいたします。

========================================================================
